package cn.openea.perpartner.meily.web.service;

import cn.openea.perpartner.meily.web.entity.BehaviorStatistics;
import cn.openea.perpartner.meily.web.entity.vo.BehaviorStatisticsVo;
import cn.openea.perpartner.meily.web.entity.vo.BehaviorVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * (BehaviorStatistics)表服务接口
 *
 * @author makejava
 * @since 2023-05-19 10:38:59
 */
public interface IBehaviorStatisticsService extends IService<BehaviorStatistics> {

    /**
     * 通过ID查询单条数据
     *
     * @param behaviorId 主键
     * @return 实例对象
     */
    BehaviorStatistics queryById(String behaviorId);

    /**
     * 更新数据（新增或修改）
     * @param vo 实例对象
     * @return
     */
    boolean saveOrEdit(BehaviorVo vo);

    /**
     * 分页查询
     * @param statistics
     * @return
     */
    List<BehaviorStatistics> findListByVo(BehaviorStatistics statistics);

    /**
     * 根据商品编号查询访问量
     * @param goodsNo
     * @return
     */
    BehaviorStatisticsVo queryByGoodsNo(String goodsNo);

    BehaviorStatisticsVo queryVisitCount(BehaviorStatistics statistics);
}
